home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / coordinateNodeInterpolatorTest < prev    next >
Text File  |  2000-06-30  |  6KB  |  188 lines

  1. #VRML V2.0 utf8
  2.  
  3. #Cosmo Worlds V2.0
  4. Viewpoint {
  5.   position    -2.44069 6.36273 13.2448
  6.   orientation    -0.774389 -0.62135 -0.119358  0.486304
  7.   fieldOfView    0.785398
  8. }
  9.  
  10. DEF BOWTIE_XF Transform {  translation    0 5 -1
  11.   children    Shape {    appearance    DEF APP_1 Appearance {
  12.       material    Material {
  13.             diffuseColor    0.8 0 0.8
  14.             emissiveColor    0.15 0 0.15
  15.       }
  16.     }
  17.     geometry    IndexedFaceSet {
  18.       coord    DEF BOWTIE_COORDS Coordinate {
  19.     point    [ 0 1 1,  0 -1 1,  1 0.257106 1,  1 0 1,  1 0.257106 -1,
  20.           1 0 -1,  0 1 -1,  0 -1 -1,  -1 0 -1,  -1 -0.236784 -1,
  21.           -1 -0.236784 1,  -1 0 1,  -2 0 -1,  -2 -0.236784 -1,  -2 -0.236784 1,
  22.           -2 0 1,  -3 1 -1,  -3 -1 -1,  -3 -1 1,  -3 1 1,
  23.           -4 0.153767 -1,  -4 0 -1,  -4 0 1,  -4 0.153767 1 ]
  24.       }
  25.  
  26.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  27.             6, -1, 2, 3, 5, 4, -1, 6,
  28.             0, 2, 4, -1, 1, 7, 5, 3,
  29.             -1, 9, 8, 6, 7, -1, 10, 9,
  30.             7, 1, -1, 11, 10, 1, 0, -1,
  31.             8, 11, 0, 6, -1, 13, 12, 8,
  32.             9, -1, 14, 13, 9, 10, -1, 15,
  33.             14, 10, 11, -1, 12, 15, 11, 8,
  34.             -1, 17, 16, 12, 13, -1, 18, 17,
  35.             13, 14, -1, 19, 18, 14, 15, -1,
  36.             16, 19, 15, 12, -1, 20, 21, 22,
  37.             23, -1, 21, 20, 16, 17, -1, 22,
  38.             21, 17, 18, -1, 23, 22, 18, 19,
  39.             -1, 20, 23, 19, 16, -1 ]
  40.       creaseAngle    0.5
  41.     }
  42.   }
  43. }DEF INDENT_XF Transform {  translation    0 2 -1
  44.  
  45.   children    Shape {    appearance    USE APP_1 
  46.     geometry    IndexedFaceSet {
  47.       coord    DEF INDENT_COORDS Coordinate {
  48.     point    [ -0.534426 0.686256 0,  -0.534426 -0.652815 0,  0.135109 0.686256 0.669535,
  49.           0.135109 -0.652815 0.669535,  0.135109 0.686256 -0.669535,  0.135109 -0.652815 -0.669535,
  50.           -0.534426 0.686256 -0.669535,  -0.534426 -0.652815 -0.669535,  -1.20396 0.686256 -0.669535,
  51.           -1.20396 -0.652815 -0.669535,  -1.20396 -0.652815 0,  -1.20396 0.686256 0,
  52.           -1.8735 0.686256 -0.669535,  -1.8735 -0.652815 -0.669535,  -1.8735 -0.652815 0,
  53.           -1.8735 0.686256 0,  -2.54303 0.686256 -0.669535,  -2.54303 -0.652815 -0.669535,
  54.           -2.54303 -0.652815 0,  -2.54303 0.686256 0,  -3.21257 0.686256 -0.669535,
  55.           -3.21257 -0.652815 -0.669535,  -3.21257 -0.652815 0.669535,  -3.21257 0.686256 0.669535 ]
  56.       }
  57.  
  58.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  59.             6, -1, 2, 3, 5, 4, -1, 6,
  60.             0, 2, 4, -1, 1, 7, 5, 3,
  61.             -1, 9, 8, 6, 7, -1, 10, 9,
  62.             7, 1, -1, 11, 10, 1, 0, -1,
  63.             8, 11, 0, 6, -1, 13, 12, 8,
  64.             9, -1, 14, 13, 9, 10, -1, 15,
  65.             14, 10, 11, -1, 12, 15, 11, 8,
  66.             -1, 17, 16, 12, 13, -1, 18, 17,
  67.             13, 14, -1, 19, 18, 14, 15, -1,
  68.             16, 19, 15, 12, -1, 20, 21, 22,
  69.             23, -1, 21, 20, 16, 17, -1, 22,
  70.             21, 17, 18, -1, 23, 22, 18, 19,
  71.             -1, 20, 23, 19, 16, -1 ]
  72.       creaseAngle    0.5
  73.     }
  74.   }
  75. }
  76. DEF ZIGZAG_XF Transform {  translation    0 -1 -1
  77.   children    Shape {    appearance USE APP_1
  78.  
  79.     geometry    IndexedFaceSet {
  80.       coord    DEF ZIGZAG_COORDS Coordinate {
  81.         point    [ 0 0 1,  0 -1 1,  1 1 1,  1 0 1,  1 1 -1,
  82.               1 0 -1,  0 0 -1,  0 -1 -1,  -1 1 -1,  -1 0 -1,
  83.               -1 0 1,  -1 1 1,  -2 0 -1,  -2 -1 -1,  -2 -1 1,
  84.               -2 0 1,  -3 1 -1,  -3 0 -1,  -3 0 1,  -3 1 1,
  85.               -4 0 -1,  -4 -1 -1,  -4 -1 1,  -4 0 1 ]
  86.           }
  87.  
  88.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  89.             6, -1, 2, 3, 5, 4, -1, 6,
  90.             0, 2, 4, -1, 1, 7, 5, 3,
  91.             -1, 9, 8, 6, 7, -1, 10, 9,
  92.             7, 1, -1, 11, 10, 1, 0, -1,
  93.             8, 11, 0, 6, -1, 13, 12, 8,
  94.             9, -1, 14, 13, 9, 10, -1, 15,
  95.             14, 10, 11, -1, 12, 15, 11, 8,
  96.             -1, 17, 16, 12, 13, -1, 18, 17,
  97.             13, 14, -1, 19, 18, 14, 15, -1,
  98.             16, 19, 15, 12, -1, 20, 21, 22,
  99.             23, -1, 21, 20, 16, 17, -1, 22,
  100.             21, 17, 18, -1, 23, 22, 18, 19,
  101.             -1, 20, 23, 19, 16, -1 ]
  102.       creaseAngle    0.5
  103.     }
  104.   }
  105. }
  106. DEF BLOCK_XF Transform {  translation    0 -4 -1
  107.  
  108.   children    Shape {
  109.     appearance    USE APP_1 
  110.  
  111.     geometry    IndexedFaceSet {
  112.       coord    DEF BLOCK_COORDS Coordinate {
  113.     point    [ 0 1 1,  0 -1 1,  1 1 1,  1 -1 1,  1 1 -1,
  114.           1 -1 -1,  0 1 -1,  0 -1 -1,  -1 1 -1,  -1 -1 -1,
  115.           -1 -1 1,  -1 1 1,  -2 1 -1,  -2 -1 -1,  -2 -1 1,
  116.           -2 1 1,  -3 1 -1,  -3 -1 -1,  -3 -1 1,  -3 1 1,
  117.           -4 1 -1,  -4 -1 -1,  -4 -1 1,  -4 1 1 ]
  118.       }
  119.  
  120.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  121.             6, -1, 2, 3, 5, 4, -1, 6,
  122.             0, 2, 4, -1, 1, 7, 5, 3,
  123.             -1, 9, 8, 6, 7, -1, 10, 9,
  124.             7, 1, -1, 11, 10, 1, 0, -1,
  125.             8, 11, 0, 6, -1, 13, 12, 8,
  126.             9, -1, 14, 13, 9, 10, -1, 15,
  127.             14, 10, 11, -1, 12, 15, 11, 8,
  128.             -1, 17, 16, 12, 13, -1, 18, 17,
  129.             13, 14, -1, 19, 18, 14, 15, -1,
  130.             16, 19, 15, 12, -1, 20, 21, 22,
  131.             23, -1, 21, 20, 16, 17, -1, 22,
  132.             21, 17, 18, -1, 23, 22, 18, 19,
  133.             -1, 20, 23, 19, 16, -1 ]
  134.       creaseAngle    0.5
  135.     }
  136.  
  137.   }
  138. }
  139. Transform {  translation    6.5 1 -1
  140.  
  141.   children    Shape {    appearance    USE APP_1 
  142.     geometry    IndexedFaceSet {
  143.       coord    DEF ANIMATED_COORDS Coordinate {
  144.     point    [ 0 1 1,  0 -1 1,  1 1 1,  1 -1 1,  1 1 -1,
  145.           1 -1 -1,  0 1 -1,  0 -1 -1,  -1 1 -1,  -1 -1 -1,
  146.           -1 -1 1,  -1 1 1,  -2 1 -1,  -2 -1 -1,  -2 -1 1,
  147.           -2 1 1,  -3 1 -1,  -3 -1 -1,  -3 -1 1,  -3 1 1,
  148.           -4 1 -1,  -4 -1 -1,  -4 -1 1,  -4 1 1 ]
  149.       }
  150.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  151.             6, -1, 2, 3, 5, 4, -1, 6,
  152.             0, 2, 4, -1, 1, 7, 5, 3,
  153.             -1, 9, 8, 6, 7, -1, 10, 9,
  154.             7, 1, -1, 11, 10, 1, 0, -1,
  155.             8, 11, 0, 6, -1, 13, 12, 8,
  156.             9, -1, 14, 13, 9, 10, -1, 15,
  157.             14, 10, 11, -1, 12, 15, 11, 8,
  158.             -1, 17, 16, 12, 13, -1, 18, 17,
  159.             13, 14, -1, 19, 18, 14, 15, -1,
  160.             16, 19, 15, 12, -1, 20, 21, 22,
  161.             23, -1, 21, 20, 16, 17, -1, 22,
  162.             21, 17, 18, -1, 23, 22, 18, 19,
  163.             -1, 20, 23, 19, 16, -1 ]
  164.       creaseAngle    0.5
  165.     }
  166.   }
  167. }
  168. DEF TIME_SENSOR TimeSensor {
  169.     cycleInterval 10
  170.     loop      TRUE}DEF MY_INTERP CoordinateNodeInterpolator {
  171.     key [ 0 .07 .14 .21 .28 .35 .42 .49 .56 .63 .70 .77 .85 .92 1 ]
  172.     keyValue [  USE BLOCK_COORDS,                USE BOWTIE_COORDS,
  173.                 USE INDENT_COORDS,
  174.                 USE ZIGZAG_COORDS,
  175.                 USE BLOCK_COORDS,
  176.                 USE BOWTIE_COORDS,
  177.                 USE BLOCK_COORDS,
  178.                 USE INDENT_COORDS,
  179.                 USE BLOCK_COORDS,
  180.                 USE ZIGZAG_COORDS,
  181.                 USE BOWTIE_COORDS,
  182.                 USE ZIGZAG_COORDS,
  183.                 USE BOWTIE_COORDS,
  184.                 USE BLOCK_COORDS,
  185.                 USE BLOCK_COORDS            ]
  186.                                 }
  187. ROUTE TIME_SENSOR.fraction TO MY_INTERP.fraction
  188. ROUTE MY_INTERP.value TO ANIMATED_COORDS.point